package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyDetailSign;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailSignMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetailSign sign);

    StrategyDetailSign selectByPrimaryKey(Long id);

    List<StrategyDetailSign> selectAll();

    int updateByPrimaryKey(StrategyDetailSign sign);

    StrategyDetailSign selectByStrategyDetailId(@Param("strategyDetailId") Long strategyDetailId, @Param("userId") Long userId);

    int queryGreatStatusCountByStrategyDetailId(Long strategyDetailId);

    int queryEnshrineStatusCountByStrategyDetailId(Long strategyDetailId);
}